Skip to content

Conversation

@tonyespinoza1
Copy link
Contributor

@tonyespinoza1 tonyespinoza1 commented Nov 5, 2025

Summary

Improved the pattern list UI for better usability and a cleaner, more modern appearance.

Changes

Pattern Names

  • Made pattern names directly clickable - Users can now click the pattern name to visit it
  • Added hover effect - Pattern names show an underline on hover to indicate they're clickable
  • Removed "Visit" button - Redundant now that names are clickable

Action Buttons

  • Replaced "Remove" text with 🗑️ icon - More visual and space-efficient
  • Changed to ghost variant - Trash button now has transparent background for minimal design
  • Removed "Rename" button - Simplified to just the delete action for now
  • Removed unnecessary wrapper - Cleaned up ct-hstack that served no purpose with single button

Visual Changes

Before:

  • Pattern name: Plain text (not clickable)
  • Actions: "Visit" button, "Remove" button (red background)

After:

  • Pattern name: Clickable link with hover underline
  • Actions: 🗑️ icon (ghost button, transparent background)

Technical Details

  • Added inline <style> tag with .pattern-link CSS class for hover effects
  • Used <a> element with className and onClick handler for pattern names
  • Changed trash button from variant="destructive" to variant="ghost"
  • Removed ct-hstack wrapper around single button (was not providing any spacing benefit)

🤖 Generated with Claude Code

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="packages/patterns/default-app.tsx">

<violation number="1" location="packages/patterns/default-app.tsx:186">
Use a real link (with an href) or a button here; the current &lt;a&gt; without href is not keyboard accessible.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Remove
</ct-button>
</ct-hstack>
<a
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a real link (with an href) or a button here; the current without href is not keyboard accessible.

Prompt for AI agents
Address the following comment on packages/patterns/default-app.tsx at line 186:

<comment>Use a real link (with an href) or a button here; the current &lt;a&gt; without href is not keyboard accessible.</comment>

<file context>
@@ -173,21 +183,21 @@ export default recipe&lt;CharmsListInput, CharmsListOutput&gt;(
-                            Remove
-                          &lt;/ct-button&gt;
-                        &lt;/ct-hstack&gt;
+                        &lt;a
+                          className=&quot;pattern-link&quot;
+                          onClick={visit({ charm })}
</file context>
Fix with Cubic

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a PR: #2022 Replace anchor without href with accessible link or button (merges into #2019)

Review and merge it to apply the changes.

…imal actions

Improved the pattern list UI for better usability and cleaner appearance:

- Made pattern names clickable links with hover underline (removed Visit button)
- Replaced "Remove" button text with trash icon (🗑️)
- Changed trash button to ghost variant (transparent background)
- Added CSS styling for pattern name hover effects
- Increased spacing around action buttons for better visual balance

The result is a more intuitive interface where users can click pattern names
directly to visit them, and actions are represented with clear visual icons.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@tonyespinoza1 tonyespinoza1 force-pushed the feat/simplify-pattern-list-actions branch from 0915c70 to f2a4a6b Compare November 5, 2025 21:54
@tonyespinoza1 tonyespinoza1 merged commit 83befa0 into main Nov 5, 2025
8 checks passed
@tonyespinoza1 tonyespinoza1 deleted the feat/simplify-pattern-list-actions branch November 5, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants